import request from '../utils/request.js'

// 会员登录
export const memberLoginApi = data => {
    return request({
        url: "/api/cashier/member/login",
        method: 'POST',
        data
    })
}
// 获取用户信息
export const getMemberInfoApi = data => {
    return request({
        url: "/api/cashier/member/info",
        method: 'GET',
        data
    })
}
// 获取全部商品和分类
export const getGoodsAllApi = data => {
    return request({
        url: "/api/cashier/goods/all",
        method: 'POST',
        data
    })
}
// 获取商品列表 
export const getGoodsListApi = data => {
    return request({
        url: "/api/cashier/goods/list",
        method: 'POST',
        data
    })
}
// 添加会员
export const memberAddApi = data => {
    return request({
        url: "/api/cashier/manage/member/add",
        method: 'POST',
        data
    })
}
// 登录
export const loginApi = data => {
    return request({
        url: "/api/cashier/login/pwd",
        method: 'POST',
        data
    })
}
// 手机门店登录
export const loginPhone = data => {
    return request({
        url: "/api/cashier/login",
        method: 'POST',
        data
    })
}
// 判断授权码 
export const getAuthCodeApi = data => {
    return request({
        url: "/api/cashier/manager/auth/code",
        method: 'POST',
        data
    })
}

// 选择门店列表 
export const getStoreListApi = data => {
    return request({
        url: "/api/cashier/manage/store/list",
        method: 'GET',
        data
    })
}

// 选择店铺列表 
export const getApplyListApi = data => {
    return request({
        url: "/api/cashier/manage/apply/list",
        method: 'GET',
        data
    })
}
// 获取base配置 
export const baseSettingApi = data => {
    return request({
        url: "/api/base/setting",
        method: 'GET',
        data
    })
}
// 查询门店信息 
export const getStoreInfoApi = data => {
    return request({
        url: "/api/cashier/manage/store/info",
        method: 'GET',
        data
    })
}
/**
 * 用户储值
 */
export const getRechargeListApi = data => {
    return request({
        url: "/api/cashier/recharge/list",
        method: 'GET',
        data
    })
}
// 用户储值添加
export const rechargeApi = data => {
    return request({
        url: "/api/cashier/recharge/user-recharge",
        method: 'POST',
        data
    })
}
// 轮训接口查支付完成
export const rechargeQueryApi = data => {
    return request({
        url: "/api/cashier/recharge/query-order",
        method: 'POST',
        data
    })
}
// 全部商品预设备注
export const remarkAllApi = data => {
    return request({
        url: "/api/cashier/pos/remark/all",
        method: 'GET',
        data
    })
}


// KDS屏
export const kdsOrderListApi = data => {
    return request({
        url: "/api/kds/order/list",
        method: 'POST',
        data
    })
}
export const kdsNoticeListApi = data => {
    return request({
        url: "/api/kds/notice/list",
        method: 'POST',
        data
    })
}
export const kdsAdListApi = data => {
    return request({
        url: "/api/kds/ad/list",
        method: 'POST',
        data
    })
}
// 获取基础设置 
export const kdsBaseSettingApi = data => {
    return request({
        url: "/api/kds/base/setting",
        method: 'POST',
        data
    })
}